<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 640px;
            height: 50px;
            background-color: #ffc0cd;
            margin: auto;
        }

        .box>div{
            width: 80px;
            height: 50px;
            float: left;
            font-size: 16px;
            text-align: center;
            line-height: 3;
            color: white;
        }
        .box a{
            width: 80px;
            height: 50px;
            color: white;
            text-decoration: none;
            display: block;
        }

        .box :hover{
            background-color: #008000;
        }
    </style>
</head>
<body>
    <div class="box">
        <div><a href="">新闻1</a></div>
        <div><a href="">新闻2</a></div>
        <div><a href="">新闻3</a></div>
        <div><a href="">新闻4</a></div>
        <div><a href="">新闻5</a></div>
        <div><a href="">新闻6</a></div>
        <div><a href="">新闻7</a></div>
        <div><a href="">新闻8</a></div>
    </div>
</body>
</html>